let nodes = document.querySelectorAll('td')
console.log(nodes)
nodes.forEach(item=>{
    item.onclick = function (){
        item.style.background = '#222'
    }
})